package com.bank.basic.service;

import com.bank.model.entity.File;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/4/5 13:33
 */
public interface FileService {
    File queryFile(String fileName);
    void saveFile(MultipartFile file, Long loanId) throws IOException;
    void download(Long sourceId, HttpServletResponse httpServletResponse);
    void download(String name, HttpServletResponse httpServletResponse);
}
